﻿using BXH.Movie.Dal;
using BXH.Movie.Model;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace BXH.Movie.Bll
{
    public class OrderInfoService
    {
        private OrderInfoDal orderInfoDal = new OrderInfoDal();
        public OrderInfoService()
        {

        }

        public bool Add(IEnumerable<OrderInfoInput> orderInfoInputs)
        {
            return orderInfoDal.Add(orderInfoInputs);
        }

        public IEnumerable<OrderInfoDto> GetByUserId(int id)
        {
            return orderInfoDal.GetByUserId(id);
        }

        public IEnumerable<OrderInfoDto> GetOrderSeatByMovieId(int id)
        {
            return orderInfoDal.GetOrderSeatByMovieId(id);
        }

        public IEnumerable<OrderInfoDto> GetOrderSeatBySessionId(int id)
        {
            return orderInfoDal.GetOrderSeatBySessionId(id);
        }
        public bool Delete(int id)
        {
            return orderInfoDal.Delete(id);
        }
    }
}
